﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CarInfoUI.aspx.cs" Inherits="UI.CarInfo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style>
        table{
            width:1000px;
            border:5px solid pink;
            background-color:rgba(139, 238, 241, 0.54);
        }
        tr{
            height:70px;
            background-color:#4bf3df;
        }
        td{
            text-align:center;
        }
        h1{
            color:rgba(56, 221, 125, 0.42);
        }
        #Button1{
            background-color:aquamarine;
        }
        #Button4{
             background-color:#4bf3df;
        }
        #Button5{
             background-color:pink;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h1>商品列表</h1>
            <p>
                <asp:Label ID="Label1" runat="server" Text="车辆类型："></asp:Label>
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="182px"></asp:TextBox>
&nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" Height="30px" Text="查询" Width="77px" OnClick="Button1_Click" />
            &nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button4" runat="server" Text="添加商品" Height="29px" OnClick="Button4_Click" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button5" runat="server" Height="28px" Text="刷新" OnClick="Button5_Click" Width="70px" />

            
            </p>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <HeaderTemplate>
                    <table>
                        <tr>
                            <td>车辆编号</td>
                            <td>车辆名称</td>
                            <td>车辆类型</td>
                            <td>车辆价格</td>
                            <td>车辆产地</td>
                            <td>车辆简介</td>
                            <td>操作1</td>
                            <td>操作2</td>
                        </tr>
                   
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                         <td><%# Container.ItemIndex+1 %></td>
                         <td><%# Eval("CarName") %></td>
                         <td><%# Eval("TypeName") %></td>
                         <td><%# Eval("CarPrice") %></td>
                         <td><%# Eval("Place") %></td>
                         <td><%# Eval("Desc") %></td>
                         <td><asp:Button ID="Button2" runat="server" Text="删除"  CommandName="delect"  CommandArgument='<%# Eval("CarID") %>'/></td>
                         <td><asp:Button ID="Button3" runat="server" Text="修改" CommandName="update"  CommandArgument='<%# Eval("CarID") %>'/></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            </div>
    </form>
</body>
</html>
